package first.demo;

public class study {
    public static void main(String[] args) {
       /* double values;
        values=Max(3,4);
        System.out.println("比较结果:"+values);
        values=Max(5.9,7.8);
        System.out.println("重载方法的比较结果:"+values);
        values=Max(11.4,5.0,9.0);
        System.out.println("重载方法的比较结果:"+values);*/
        /*String[] str = new String[]{"name","deft","adc"};
        display(str);
        display1(str);*/





    }
    /*public static void display(String[] str){
        for (int i = 0; i < str.length; i++)
            System.out.println(str[i]);
    }
    public static void display1(String... str){
        for(int i=0;i<str.length;i++)
            System.out.println(str[i]);
    }
    public static void display2(int j,String... str){
        for(int i=0;i<str.length;i++)
            System.out.println(str[i]);
    }
    public static void display3(String... str,int j){
        for(int i=0;i<str.length;i++)
            System.out.println(str[i]);
    }*/

   /* public static int Max(int x,int y){
        return Math.max(x,y);
    }
    public static double Max(double x,double y){
        return Math.max(x,y);
    }
    public static double Max(double x,double y,double z){
        return  Math.max(Math.max(x,y),z);
    }*/
}













 /*public static String MoL(String s){
        return s;
    }
    public static int add(int x,int y) {
        return x+y;
    }

    public static double add(int x,double y) {
        return x+y;
    }

    public static double add(int x,double y,int z) {
        return x+y;
    }

    public static  int MoL(int x){
        return x*x;
    }

    public static  int MoL(int x,int y){
        return x*y;
    }

}

class test1{
    public String name;
    public static String name_first;
    void display(){
        System.out.println("name:"+name+"\n"+"name_first:"+name_first);
    }*/
 /* test1 te = new test1();
        te.name="wy";
        test1.name_first="w";
        //test1.name="wy";
        int x;
        x=MoL(2);
        System.out.println("MoL计算结果:"+x);
        x=MoL(2,3);
        System.out.println("重载方法MoL计算结果:"+x);
        String s;
        s=MoL("avsdfgh");
        System.out.println("重载方法MoL打印结果:"+s);*/